<?php
$user = $_POST["user"];
$password = $_POST["pass"];
include '../models/LoginModel.php';
$login = new LoginModel();
if($login->check_user($user, $password) == "true") {
	session_start();
	$_SESSION['users']="login";
	echo "yes";
} else {
	echo "no";
}
?>